﻿using MicroCloud.Mapping;
using Tsari.Mes.Plc.Core;

namespace Tsari.Mes.Plc
{
    public class MesPlcPack : PackBase
    {
        public override PackLevel Level => PackLevel.Module;

        public override int OrderNo => 1;

        public override IServiceCollection AddServices(IServiceCollection services)
        {
            services.AddSingleton<IMapTuple, MesPlcMapperConfiguration>();
            services.AddScoped<IMesPlcService, MesPlcService>();
            
            return services;
        }

        public override void UsePack(IServiceProvider provider)
        {

            IsEnabled = true;
        }

    }
}
